package org.gxuwz.core.service.Impl;

import java.util.List;

import org.gxuwz.core.dao.IAreaDao;
import org.gxuwz.core.dao.IPolicyDao;
import org.gxuwz.core.entity.TPolicy;
import org.gxuwz.core.service.IAreaService;
import org.gxuwz.core.service.IPolicyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("PolicyService")
public class PolicyService implements IPolicyService{
	@Autowired
	IPolicyDao poilDao;
	
	@Override
	public void addPolicyDao(TPolicy poli) {
		// TODO Auto-generated method stub
		poilDao.addPolicy(poli);
	}

	@Override
	public List<TPolicy> getAll(String runyear, String maxline) {
		// TODO Auto-generated method stub
		return poilDao.getAll(runyear, maxline);
	}

	@Override
	public TPolicy getByRunYear(String runyear) {
		// TODO Auto-generated method stub
		return poilDao.getByRunYear(runyear);
	}

	@Override
	public void update(TPolicy poli) {
		// TODO Auto-generated method stub
		poilDao.update(poli);
	}

	@Override
	public void delete(TPolicy poli) {
		// TODO Auto-generated method stub
		poilDao.delete(poli);
	}

}
